package com.test.demon1;

import java.util.Arrays;

public class Dog extends Animal{
    public void bark(){
        System.out.println(this.name+"汪汪叫");
    }

    public void method(){
        this.name = "来福";
        this.age = 3;
        this.eat();
    }

    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.method();
    }
}
